using System;
using System.Collections;
using System.Collections.Generic;
using Sirenix.OdinInspector;
using UnityEditor;
using UnityEngine;

public class StateMachineHolder : MonoBehaviour
{
    [ShowInInspector]
    public TestData testDatas = new();
    public string data;


    [Button]
    void ToJson()
    {
        data = EditorJsonUtility.ToJson(testDatas);
    }

    [Button]
    void ToObj()
    {
        EditorJsonUtility.FromJsonOverwrite(data, testDatas);
    }
}

public class TestData
{
    public float value;
    public GameObject obj;
}
